<template>
  <div class="section">
    <div class="label">答案</div>
    <div class="title">选择正确或者错误（默认正确）</div>
    <el-radio-group v-model="answer">
      <el-radio border label="正确">正确</el-radio>
      <el-radio border label="错误">错误</el-radio>
    </el-radio-group>
  </div>
</template>

<script lang="ts">
import { ref } from 'vue'
export default {
  setup() {
    let answer = ref('正确');

    const validator = () => ({ rightAnswer: [{ content: answer.value }] });

    return { answer, validator }
  }
}
</script>

<style lang="scss" scoped>

</style>